FROM bewithmeallmylife/10.2-cudnn7-runtime-ubuntu18.04-python3-qt5:1.0.0


USER root

RUN  apt-get update
RUN  apt-get install software-properties-common -y
RUN  add-apt-repository ppa:deadsnakes/ppa
RUN  apt-get update
RUN  apt-get install python3.8 -y

RUN  apt-get install python3-pip -y

RUN apt-get install python3.8-dev -y

RUN apt-get install libffi-dev -y

RUN apt-get install libssl-dev -y


RUN rm /usr/bin/python3
RUN ln -s /usr/bin/python3.8 /usr/bin/python3
RUN ln -s /usr/bin/python3.8 /usr/bin/python
RUN pip3 install --upgrade pip
RUN pip3 install PyQt5 -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com



#sudo docker build -t='bewithmeallmylife/10.2-cudnn7-runtime-ubuntu18.04-python3.8-qt5:1.0.0' .
#sudo docker run --rm --gpus '"device=0"' -it -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY -u qtuser bewithmeallmylife/10.2-cudnn7-runtime-ubuntu18.04-python3.8-qt5:1.0.0  python3 /tmp/hello.py